My questions is similar to the watch question here but with a twist. I need to use quotes, which seem to be stripped by an aliased watch.
I want run watch on a custom slurm squeue command:
$alias squeue_personal='squeue -o "%.18i %.9P %.8j %.8u %.216t %.10M %.6D %R %V %S %Z"' $alias watch='watch '
But this still doesn't work. Because the aliased watch strips out quotations:
Every 2.0s: squeue -o %.18i %.9P %.8j %.8u %.2t %.10M %.6D %R %V %S %Z Fri Jul 6 12:06:57 2018 squeue: error: Unrecognized option: %.9P Usage: squeue [-A account] [--clusters names] [-i seconds] [--job jobid] [-n name] [-o format] [-p partitions] [--qos qos] [--reservation reservation] [--sort fields] [--start] [--step step_id] [-t states] [-u user_name] [--usage] [-L licenses] [-w nodes] [-ahjlrsv]
If I don't use aliases everything is fine. e.g. the following works:
$watch 'squeue -o "%.18i %.9P %.8j %.8u %.2t %.10M %.6D %R %V %S %Z"'
I'm sure the solution is some small twist to the other watch question but I don't know what.