« first day (2684 days earlier)      last day (2568 days later) » 

cas
cas
10:01
@user9303970 just saw this a few minutes ago and had a quick look at your github repo. Overall, my reaction is that I feel kind of ill that any of my comments or answers might have contributed to this even in a small way. BTW, are you aware that Debian's wordpress package comes with a system for automating the config for multiple wordpress sites? See /etc/wordpress/ and /usr/share/doc/wordpress/README.Debian.gz (dunno if this is inherited or adapted by ubuntu or mint etc).
 
4 hours later…
13:33
Eeeesh; habits like this chmod +x $HOME/"$repo"/* -R make my eyes twitch. It shouldn't be legal.
 
1 hour later…
14:40
@JeffSchaller Yes, two things: 1) A repository should probably not have all its files executable, and 2) The command line options are out-of-order (probably doesn't matter if it's a GNU chmod).
Also, 3) $HOME is unquoted.
 
1 hour later…
16:03
@Kusalananda Now that makes me curious, if you put a space in $HOME, how many things would break? This is an experiment I encourage my enemies to try on their systems. Well, at least I would, had I enemies.
@derobert Yeah. Although I haven't seen a system that puts home directories under a path containing spaces (or allows usernames with spaces).
Practically, I think cd $HOME is actually safe...
On sane systems, yes. Or rather, on systems with sane admins.
I'd still quote it though.
Actually, you should probably quote it in case HOME is set explicitly for a service (or whatever) that runs in some other location than a bog standard home directory.
Yeah, you should quote it, definitely.
But in this case it was a command run interactively at a shell, so ...
Habits. Good ones are nice to have.
16:23
@derobert So, do you have enemies? Do tell.
@FaheemMitha No, so unfortunately I have no one to get to try that...
@derobert You should become a superhero. Then you'd automatically get enemies.
Supervillains, probably.
Hmmm, but they've got to be enemies running Unix. If they run Windows, that won't work.
Or if they insist on typewriters.
@derobert I'm pretty sure Ivan Antonovich Vanko used unix
Rather dead though, and who knows what an undead czar would do. Sounds scary.
16:55
terdon@tpad ~ $ sudo mkdir "/this be one dumb ol' path!"
terdon@tpad ~ $ HOME="/this be one dumb ol' path!"
terdon@tpad terdon $ cd
terdon@tpad ~ $ pwd
/this be one dumb ol' path!
Just sayin'
At least, this fails on my Arch:
$ sudo useradd -d "/this be one dumb ol' path!" -m -s /bin/bash 'and this be one dumb user name'
useradd: invalid user name 'and this be one dumb user name'
17:08
@terdon After vipw on my system:
    $ id
    uid=1000(Here be dragons) gid=1000(kk) groups=1000(kk), 0(wheel), 9(wsrc)
huh
It's the useradd utility that does the checking on yours I think.
This obviously does not change my HOME, but I won't provoke my system too much with this now so won't try it out ATM
It's likely just fine to change username and home directory to things containing spaces if you do it directly in the passwd file with vipw.
In the above case, I just changed the username.
I don't know if some Linux does any more stringent checking of passwd before updating /etc/passwd after exiting the vipw editor.
17:24
@terdon Is this question a case for "off-topic: learning material/tutorial"?
@Kusalananda no, why would it be? What makes you think it is asking for another site which offers a tutorial?
That's a prime candidate for closing as too broad and/or unclear though.
Well it asks for a "step by step" instruction. Sigh, I'm never going to understand that off-topic closing reason...
@Kusalananda If it isn't asking for a link to another site, don't use it. That's the basic rule of thumb. Questions asking for a step by step tutorial are fine. We can give that here, if we are so inclined. Questions like "Hey, where can I find a good video explaining foo" are not fine and are requests for learning materials.
The difference is between asking a question that can be answered here and asking a question that can only be answered by "go to this other place".
Ah, ok. Thanks.
I voted "too broad" on it, anyway.
Fair enough :)
17:45
@derobert Why won't Windows-running supervillains work?
Though a supervillain running Windows doesn't seem very threatening, somehow. Plus, we know all the best supervillains only run BSD. Probably OpenBSD.
17:57
I'm wondering how xml parser does the job where in all sites I see it's a mistake to parse xml with text processing tools or regex. Then what logic xml parser tools or commands are using to process that xml?
@derobert @Kusalananda thanks for the feedback
as I checked, inside netrc also I need to provide user and pass of remote server, so this way it does help, I just save password in different file called netrc rather than my own script
maybe I should go with rsync
18:14
@αғsнιη An XML parser will know the syntax of XML files and probably contains some sort of state machine deep down in its bowels.
Or do I mean "grammar"?
@FaheemMitha Windows doesn't have $HOME ...
@derobert I don't follow. And doesn't it?
@Kusalananda A grammar is a formal description of the "language" (e.g., XML). The parser is often a state machine.
@FaheemMitha Not like a Unix box at least. A things on Windows traditionally contain spaces, e.g., "Documents and Settings"
How does find process names if those names are changed by -exec? I just anwered an old question and rathor than using find to find and rename files I used it to find directories and then applied a script to these to change the filenames.
I did it that way because I wasn't sure that if I changed a file's name, it would then "be found again" by the same invokction of find... Hmm... seems a bit silly now when I think about it.
Honestly... I forget the rules about modifying a directory while you're reading it...
Might be worth a question.
18:28
@derobert I suppose so. And this matters why?
2 hours ago, by derobert
@Kusalananda Now that makes me curious, if you put a space in $HOME, how many things would break? This is an experiment I encourage my enemies to try on their systems. Well, at least I would, had I enemies.
@derobert Oh, right. Sorry for missing that.
18:49
damn can I take back an edit approval
I read it wrong when I approved it
@Jesse_b Edit it again?
@Kusalananda Well it didn't actually get approved yet. I guess because it has one rejection as well.
@derobert The question is now live on the site.
@Jesse_b point to the suggested edit here so someone else can give it a reject
19:01
@Kusalananda It feels like you've almost answered your own question with the spec quote. But I'm sure if you manage to summon Stéphane Chazelas or Gilles there is much more to know about it than I can imagine.
@JeffSchaller That is it. For some reason I thought he had deleted the ( ... ) from the title and not added it
@Jesse_b done
ty sir
We’re going to be doing some maintenance on the Data Explorer for just a bit to patch it up. It’ll be back online right after.
19:06
@Jesse_b @Jesse_b Either way, that question could use some more help. I tried:
0
Q: What does "${line#*'Caused By'}" != "$line" mean in a bash script?

srikanth chintalCan someone explain what this means in a shell script? while read -r line do if [ "${line#*'Caused By'}" != "$line" ]; then echo "Yes" fi done

I'm pretty sure that's a bash-ism.
Yea, I think Kusalananda explained it pretty well
Ah yeah, apparently not a bashism then.
Actually I'm not sure though. Is it equivalent to [[ "$line" == *'Caused by'* ]]?
$ var='this is caused by some stuff'
$ echo ${var#*'caused by'}
some stuff
$ var='some stuff is caused by'
$ echo ${var#*'caused by'}

$
The test is the same, but the result of the substitution depends on the value of the variable. If the value contains the caused by string, it will be modified by the substitution and the test will trigger.
@derobert I don't feel like I did. If it's unspecified, then a whole lot of answers here have unspecified results.
macOS Unix systems do not infrequently end up with spaces in the username & then in $HOME. I have met that before and had issues
19:16
Yeah, like make (for example) had better not have spaces in anything....
@Kusalananda I doubt it's that many, how many add a file to a directory while find is reading it?
@derobert Well, any solution that uses find to rename files...
and that cares if they're found a second time
e.g., renaming them to change file1 to file0001 doesn't care
True.
Well, it matters if the pattern is file*.
Not in this case, as file0001 would get renamed to file0001 ... a no-op
e.g., using printf '%04i'
20:00
@Kusalananda Oh duh. I'm way off today -.- I was reading == instead of != :-/
@Jesse_b No worries, my brain is fried too from time to time.
I've been in my garage fighting my truck and cursing up a storm. I had to replace an o2 sensor. Took me forever to get the old one out only to find the new one I ordered is not the correct part
This is the third time I have learned my lesson about buying auto parts from amazon. If amazon says it will fit your vehicle, chances are it will actually not fit your vehicle
 
3 hours later…
23:00
@Jesse_b You can purchase auto parts from Amazon?!!
Hopefully you can return it.

« first day (2684 days earlier)      last day (2568 days later) »